//
//  RegisterViewController.m
//  EZ Tracker
//
//  Created by FENGYL on 2016/10/31.
//  Copyright © 2016年 FENGYL. All rights reserved.
//

#import "RegisterViewController.h"
#import <MBProgressHUD.h>

@interface RegisterViewController ()

@property (weak, nonatomic) IBOutlet UIButton *apnSettingButton;
@property (weak, nonatomic) IBOutlet UIButton *registerAccountButton;

@end

@implementation RegisterViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self setUpNavigation];
    
    [self setButtonShadow:self.apnSettingButton];
    [self setButtonShadow:self.registerAccountButton];
    
}

#pragma mark 设置阴影效果
-(void)setButtonShadow:(UIButton *)sender{
    
    sender.layer.shadowColor = [UIColor blackColor].CGColor;
    
    sender.layer.shadowOffset = CGSizeMake(2, 2);
    
    sender.layer.shadowOpacity = 0.4;
    
    sender.layer.shadowRadius = 4;
    
}

#pragma mark 设置navigation
-(void)setUpNavigation{
    
    [self.navigationController.navigationBar setBarTintColor:[UIColor colorWithRed:0/255.0 green:80/255.0 blue:255/255.0 alpha:1]];
    
    [self.navigationController.navigationBar setTintColor:[UIColor whiteColor]];
    
    self.navigationController.navigationBar.titleTextAttributes = @{NSForegroundColorAttributeName:[UIColor whiteColor]};
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

#pragma mark 返回登录界面
- (IBAction)touchBackButtonItem:(id)sender {
    
    [self dismissViewControllerAnimated:YES completion:nil];
    
}



/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
